package protocols

type WeixinReq struct {
	Code  string `json:"code" mapstructure:"code"`
	Scope string `json:"scope" mapstructure:"scope"`
}

type WeixinS struct {
	OpenId  string `json:"open_id" mapstructure:"open_id"`
	UnionId string `json:"union_id" mapstructure:"union_id"`
}

type WeixinShare struct {
	UrlPath string `json:"url_path" mapstructure:"url_path"`
	OpenId  string `json:"open_id" mapstructure:"open_id"`
	Token   string `json:"token" mapstructure:"token"`
}

type WeixinOpen struct {
	AccessToken  string  `json:"access_token" mapstructure:"access_token"`
	ExpiresIn    float64 `json:"expires_in" mapstructure:"expires_in"`
	RefreshToken string  `json:"refresh_token" mapstructure:"refresh_token"`
	Openid       string  `json:"openid" mapstructure:"openid"`
	Scope        string  `json:"scope" mapstructure:"scope"`
	Errcode      float64 `json:"errcode" mapstructure:"errcode"`
	Errmsg       string  `json:"errmsg" mapstructure:"errmsg"`
}
